package com.xyh.transaction.mapper;

import com.xyh.transaction.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    //    @Select("select * from t_category")
    List<Category> findAll(Category category);

    Category findById(Integer id);

    void update(Category category);

    int insert(Category category);

    Category findByName(String name);

    void delete(Integer[] ids);

    List<Category> findAllCategorySub();
}
